package com.warm.log;

import com.warm.log.annotation.Log;
import com.warm.log.interceptor.LogInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.core.AppContext;
import org.noear.solon.core.Plugin;

/**
 * 日志记录插件
 *
 * @author warm
 */
@Slf4j
public class XPluginImpl implements Plugin {
    @Override
    public void start(AppContext context) {
        context.beanInterceptorAdd(Log.class, new LogInterceptor());
        log.debug("warm插件加载: 成功加载[日志记录插件]插件");
    }
}
